heaturl = 'http://www.ppc-conversion-tracking.com/ap/slx/heatsave.php'; heat_userid = '1'; heat_pageid = '3 document.body.offsetHeight ) { // all but Explorer Mac pageWidth = document.body.scrollWidth; pageHeight = document.body.scrollHeight; } else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari pageWidth = document.body.offsetWidth + document.body.offsetLeft; pageHeight = document.body.offsetHeight + document.body.offsetTop; } ph = pageHeight; pw = pageWidth; return [ pw, ph ]; } function pageWidth() { return window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:null; } function pageHeight() { return window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null; } function getScrollXY() { scrOfX = 0; scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } window.onbeforeunload=dopopup1; window.onunload=dopopup2;